package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.CriticalAlarmRiskEvent;

/**
 * 关键报警风险事件业务对象 critical_alarm_risk_event
 *
 * @author Lion Li
 * @date 2025-10-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CriticalAlarmRiskEvent.class, reverseConvertGenerate = false)
public class CriticalAlarmRiskEventBo extends BaseEntity {

    /**
     *
     */
    private Long id;

    /**
     * 风险事件
     */
    @NotBlank(message = "风险事件不能为空", groups = {AddGroup.class, EditGroup.class})
    private String eventName;

    /**
     * 偏差1
     */
    @NotBlank(message = "偏差1不能为空", groups = {AddGroup.class, EditGroup.class})
    private String bias1;

    /**
     * 工艺位号1
     */
    @NotBlank(message = "工艺位号1不能为空", groups = {AddGroup.class, EditGroup.class})
    private String indicatorNum1;

    /**
     * 偏差2
     */
    @NotBlank(message = "偏差2不能为空", groups = {AddGroup.class, EditGroup.class})
    private String bias2;

    /**
     * 工艺位号2
     */
    @NotBlank(message = "工艺位号2不能为空", groups = {AddGroup.class, EditGroup.class})
    private String indicatorNum2;

    /**
     * 偏差3
     */
    @NotBlank(message = "偏差3不能为空", groups = {AddGroup.class, EditGroup.class})
    private String bias3;

    /**
     * 工艺位号3
     */
    @NotBlank(message = "工艺位号3不能为空", groups = {AddGroup.class, EditGroup.class})
    private String indicatorNum3;

    /**
     * 偏差4
     */
    @NotBlank(message = "偏差4不能为空", groups = {AddGroup.class, EditGroup.class})
    private String bias4;

    /**
     * 工艺位号4
     */
    @NotBlank(message = "工艺位号4不能为空", groups = {AddGroup.class, EditGroup.class})
    private String indicatorNum4;

    /**
     * 设备id
     */
    @NotNull(message = "设备id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long equipmentId;

    /**
     * 固有风险可行性 0-8
     */
    @NotNull(message = "固有风险可行性 0-8不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long inherentRiskLikelihood;

    /**
     * 固有风险严重性 0-8
     */
    @NotNull(message = "固有风险严重性 0-8不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long inherentRiskSeverity;

    /**
     * 残余风险可行性 0-8
     */
    @NotNull(message = "残余风险可行性 0-8不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long residualRiskLikelihood;

    /**
     * 残余风险严重性 0-8
     */
    @NotNull(message = "残余风险严重性 0-8不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long residualRiskSeverity;

    /**
     * 原因
     */
    @NotBlank(message = "原因不能为空", groups = {AddGroup.class, EditGroup.class})
    private String reason;

    /**
     * 防护措施
     */
    @NotBlank(message = "防护措施不能为空", groups = {AddGroup.class, EditGroup.class})
    private String measure;

    /**
     * 后果
     */
    @NotBlank(message = "后果不能为空", groups = {AddGroup.class, EditGroup.class})
    private String result;


}
